﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class RoomMsg : Message
    {
        public static int TYPE = 7;
        public static int ID = 142;
        public int GetType;//0代表进行中，1代表参与过 2代表准备中
        public string RoomName;//房间名
        public string RoomId;
        public string Name;//开房者名字
        public int Difen;//底分
        public int NowNumber;//房间现有人数
        public int AllNumber;//房间人数上限
        public string Time;//剩余时间（格式   X.X小时结束）
        public string hade;//头像下载地址；
        public void decode(core.io.Input _in)
        {
            GetType = _in.readInt();
            RoomName = _in.readString();
            RoomId = _in.readString();
            Name = _in.readString();
            Difen = _in.readInt();
            NowNumber = _in.readInt();
            AllNumber = _in.readInt();
            Time = _in.readString();
            hade = _in.readString();
        }
        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
